package rust_static

/*
#cgo LDFLAGS: -L${SRCDIR}/../rust/target/release -lhello_rust -Wl,-rpath,${SRCDIR}/target/release
#include <stdlib.h>
void hello_from_rust_static(const char* name);
*/
import "C"
import (
	"unsafe"
)

//libhello_rust.a

//C ABI

//Rust #[no_mangle] + extern "C"

//ffi/language/method/rust/target/release/libhello_rust.so

func RunRustStatic(str string) {
	name := C.CString(str)
	defer C.free(unsafe.Pointer(name))
	C.hello_from_rust_static(name)
}
